//
//  BaseViewController.h
//  Jula2
//
//  Created by Captain on 14-3-4.
//  Copyright (c) 2014年 Captain. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "BaseViewControllerDelegate.h"
//#import "WaitingView.h"
//#import "RetryView.h"
//#import "EmptyView.h"

@interface BaseViewController : UIViewController
//@property (nonatomic, strong) WaitingView *viewWaitingView;
//@property (nonatomic, strong) RetryView *viewRetryView;
//@property (nonatomic, strong) EmptyView *viewEmpty;
@property (nonatomic, strong) UIView *viewContent;

/**
 *  当获取第一页数据时，是否隐藏contentview
 */
@property (nonatomic) BOOL showContentViewWhenFirstPage;

/**
 *  左边的标题
 */
@property(nonatomic,strong)NSString *strTitleLeft;
/**
 *  右边的标题
 */
@property(nonatomic,strong)NSString *strTitleRight;

/**
 *  navigation bar 中间的标题
 */
@property(nonatomic,strong)NSString *strTitle;
/**
 *  右边点击时
 */
@property(nonatomic,strong)void (^RightClick)(void);
/**
 *  左边点击时
 */
@property(nonatomic,strong)void (^LeftClick)(void);
/**
 *  左边的图标Hex值
 */
@property(nonatomic,strong)NSString *hexLeft;
/**
 *  右边的图标Hex值
 */
@property(nonatomic,strong)NSString *hexRight;

/**
 *  设置刷新类型
 *
 *  @param v      关键类，UIScrollView、UITableView、UICollectionView、UIWebView
 *  @param header 是否开启头
 *  @param footer 是否开启底部
 */
-(void)contentView:(UIView*)cV enableHeader:(BOOL)header enableFooter:(BOOL)footer;
/**
 *  网络请求
 */
@property (nonatomic, strong) NSDictionary *dicParam;
/**
 *  当前网页
 */
@property (nonatomic, readonly) int nowPage;
/**
 *  创建网络请求获取第一页面的数据
 */
-(void)beginGetDate:(NSString *)url and:(NSInteger)intID;

/**
 *  显示重试
 */
-(void)showRetry;
/**
 *  显示空
 */
-(void)showEmpty;
/**
 *  显示内容
 */
-(void)showContent;
/**
 *  显示等待
 */
-(void)showWaiting;

@property (nonatomic, strong) UIColor *colorLeft;

@property (nonatomic, strong) UIColor *colorRight;
/**
 *  navigation 所有的颜色
 */
@property (nonatomic,strong)UIColor *baseColor;

@end
